package admin

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

type Login struct {

}


//登录页
func (login *Login) Index (c *gin.Context){
	c.HTML(http.StatusOK, "login.html", gin.H{})
}
//登录提交
func (login *Login) DoLogin(c *gin.Context){
	//接收参数
	phone    := c.PostForm("phone")
	password := c.PostForm("password")
 	if phone == "" || password == "" {
 		c.JSON(200,gin.H{
 			"status":false,
 			"msg":"缺少账号或密码",
		})
 		return
	}
}
